<?php


namespace Modules\Admin\Http\Controllers\AdminUser;


use Modules\Common\General\Security\Api\Gateway;
use Modules\Common\Models\AdminUser;
use Modules\Common\Util\Api;

class Update
{
    /**
     * @Route(path=/api/admin/adminuser method=put)
     */
    public function index()
    {
        $adminUser = Gateway::AdminUser();
        AdminUser::safeUpdateWithRequestParams(['password'], $adminUser->id);
        return Api::success();
    }

}
